<?php echo $this->element('user'); ?>
<?php if (isset($redirect)) echo $javascript->codeBlock('window.location = "/users/search"'); ?>
<div class="aTitle">
	<h2>Update User Details</h2>
</div>
<div class="assessment">
	<div id="aForm">
	<div id="aFormLeft">
<fieldset>
<script type="text/javascript">
$(function() {
	$("#change_password_button").click(function() {
		var options = {};		
		$("#include_password").toggle('drop',options,500);
		return false;
	});
});
</script>

<?php
	echo $form->create('User', array('action' => 'edit'));
	echo $form->hidden('id');
?>

	<?php echo $form->input('email');?>
	<?php echo $form->input('firstname');?>
	<?php echo $form->input('lastname');?>	
	</div>
	<div id="aFormRight">
	<?php echo $form->input('usergroup_id');?>
	<?php echo $form->input('username');?>
	<!--<div id="include_password" style="display: none;"><?php //echo $form->input('password_change');?></div>

	<div>
		<a href="#" id="change_password_button" title="change password">Click Here To Change Password</a><br /><br />
	</div>
	<?php //echo $form->input('active');?>-->
<div class="right"><?php echo $form->end('Update Profile');?></div>
</fieldset>
</div>
</div>
</div>
</div>